export function isJSON(str: any) {
  if (typeof str == "string") {
    try {
      const obj = JSON.parse(str)
      if (typeof obj == "object" && obj) {
        return true
      } else {
        return false
      }
    } catch (e) {
      return false
    }
  } else if (typeof str == "object" && str) {
    return true
  }
}

export default {}
